#pragma once
#include "protocols/protocal.h"
#include "Protocols/PacketHeader.h"
#include "utilities/utilities.h"

class PacketInfoHeader : public PacketHeader {
public:
	PacketInfoHeader(ProtocolPtr id,const unsigned char* data,size_t pos,size_t length):PacketHeader(id,data,pos,length) {
		mLength = getHeaderLength();
	}

	void getPacket(ReadablePacket* packet_tmp){
		packet = packet_tmp;
	}
	void toShowableItems(ShowableItem* root) const;

	QString getSummary() const{
		return QString("");
	}

	int getHeaderLength() const{
		return 0;
	}
private:
	ReadablePacket* packet;
};


DECLARE_PROTOCOL_BEGIN(Summary,PacketInfoHeader)
DECLARE_PROTOCOL_END